<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
  <title>编辑员工</title>
  <link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="container">
  <h2>编辑员工</h2>
  <form action="edit" method="post">
    <input type="hidden" name="id" value="${employee.id}">
    <label>姓名：<input type="text" name="name" value="${employee.name}" required></label><br>
    <label>部门：<input type="text" name="department" value="${employee.department}" required></label><br>
    <label>职位：<input type="text" name="position" value="${employee.position}" required></label><br>
    <label>薪资：<input type="number" step="0.01" name="salary" value="${employee.salary}" required></label><br>
    <label>邮箱：<input type="email" name="email" value="${employee.email}"></label><br>
    <label>电话：<input type="text" name="phone" value="${employee.phone}"></label><br>
    <label>入职日期：<input type="date" name="hireDate" value="${employee.hireDate}" required></label><br>
    <button type="submit">更新</button>
  </form>
  <p><a href="list">返回列表</a></p>
</div>
</body>
</html>